import java.lang.reflect.Method;
import java.util.Scanner;

public class demo {
    public static void main(String[] args) {
        dbstudent db = new dbstudent();
        while(true)
        {
        System.out.println("===============================");
        System.out.println("1.查看所有信息");
        System.out.println("2.增加信息");
        System.out.println("3.删除信息");
        System.out.println("4.更改信息");
        System.out.println("===============================");
        System.out.println("请输入：");
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        switch(num){
            case 1:db.printall();break;
            case 2:db.add();break;
            case 3:db.delete();break;
            case 4:db.update();break;
            default:
                break;
        }}
    }
}
